Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix self mention, resolve handle #1903

Merged
merged 5 commits into from
Nov 14, 2023
Merged

Conversation

estrattonbailey
Copy link
Member

Replaces logic with new patterns, adds a couple new utils for getting a handle by handleOrDid. Prev handling was synchronous, new is async, so I added a disabled state to this button.

Comment on lines 16 to 17
// cache in memory forever, page reload clears
staleTime: Infinity,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should invalidate the cache when the user changes their handle, and might want to manually update the cache any time we use the get profile hook

Copy link
Collaborator

@pfrazee pfrazee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small note

Comment on lines 16 to 17
// cache in memory forever, page reload clears
staleTime: Infinity,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should invalidate the cache when the user changes their handle, and might want to manually update the cache any time we use the get profile hook

@estrattonbailey estrattonbailey merged commit ab6e3f2 into main Nov 14, 2023
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants